;----
;file:      include/sys/syscall.inc
;auther:    Jason Hu
;time:      2020/2/10
;copyright:	(C) 2018-2020 by Book OS developers. All rights reserved.
;----

; 系统调用中断向量号
INT_VECTOR_SYS_CALL equ 0x80

; 系统调用函数id

SYS_LOG         EQU 0
SYS_MMAP        EQU 1
SYS_MUNMAP      EQU 2
SYS_FORK        EQU 3
SYS_GETPID      EQU 4
SYS_EXECV       EQU 5
SYS_SLEEP       EQU 6
SYS_MSLEEP      EQU 7
SYS_EXIT        EQU 8
SYS_WAIT        EQU 9
SYS_BRK         EQU 10

SYS_OPEN        EQU 11
SYS_CLOSE       EQU 12
SYS_READ        EQU 13
SYS_WRITE       EQU 14
SYS_LSEEK       EQU 15
SYS_STAT        EQU 16
SYS_REMOVE      EQU 17
SYS_IOCTL       EQU 18
SYS_GETMODE     EQU 19
SYS_SETMODE     EQU 20
SYS_MKDIR       EQU 21
SYS_RMDIR       EQU 22
SYS_GETCWD      EQU 23
SYS_CHDIR       EQU 24
SYS_RENAME      EQU 25
SYS_OPENDIR     EQU 26
SYS_CLOSEDIR    EQU 27
SYS_READDIR     EQU 28
SYS_REWINDDIR   EQU 29
SYS_ACCESS      EQU 30
SYS_FCNTL       EQU 31
SYS_FSYNC       EQU 32
SYS_PIPE        EQU 33
SYS_FIFO        EQU 34

SYS_KILL        EQU 35
SYS_SIGRET      EQU 36
SYS_SIGNAL      EQU 37
SYS_SIGPROCMASK EQU 38
SYS_SIGPENDING  EQU 39
SYS_SIGACTION   EQU 40

SYS_ALARM       EQU 41
SYS_SIGPAUSE    EQU 42
SYS_SIGSUSPEND  EQU 43

SYS_GETPGID     EQU 44
SYS_SETPGID     EQU 45

SYS_GRAPHW      EQU 46

SYS_TELL        EQU 47
SYS_ISFOOT      EQU 48
SYS_DUP         EQU 49
SYS_DUP2        EQU 50

SYS_KGCMSG      EQU 51

SYS_TIME        EQU 52
SYS_TASKSCAN    EQU 53

SYS_GETMEM      EQU 54
SYS_REDIRECT    EQU 55
SYS_REBOOT      EQU 56
SYS_GETVER      EQU 57
